<% if @credit_record.errors.empty? %>
  $('<%= '#cr-opts-' + @credit_record.id.to_s %>').replaceWith( $('<%= j(render partial: 'record_workflow_operations', locals:{credit_record: @credit_record}) %>') )
<% else %>
  
<% end %>
